<template>
  <div class="c_right">
    <div class="ser">
      <span>类别</span>
      <ul class="m-0 p-0 flex" >
        <li  v-for="(item,index) in spanList" :key="index">{{item.name}}</li>
      </ul>
    </div>
    <div class="ser">
      <span>产地</span>
      <ul class="m-0 p-0 flex">
        <li  v-for="(item,index) in cdList" :key="index">{{item.name}}</li>
      </ul>
    </div>
    <div class="ser">
      <span>发热量</span>
      <ul class="m-0 p-0 flex">
        <li  v-for="(item,index) in frList" :key="index">{{item.name}}</li>
      </ul>
    </div>
    <div class="ser">
      <span>全硫分</span>
      <ul class="m-0 p-0 flex">
        <li  v-for="(item,index) in qlList" :key="index">{{item.name}}</li>
      </ul>
    </div>
    <div class="ser">
      <span>粘结指数</span>
      <ul class="m-0 p-0 flex">
        <li  v-for="(item,index) in zjzsList" :key="index">{{item.name}}</li>
      </ul>
    </div>
  </div>
</template>

<script>
import flcdApi from "@/api/newCenter/flcd";
export default {
  name: "",
  data() {
    return {
      spanList: [],
      cdList: [],
      frList: [],
      qlList: [],
      zjzsList: [],
    };
  },
  mounted() {
    this.getFl_one();
    this.getFl_two();
    this.getFl_third();
    this.getFl_four();
    this.getFl_five();
  },
  methods: {
    getFl_one() {
      flcdApi
        .getAllFl({ type: "1" })
        .then((res) => {
          this.spanList = res.data.data;
        })
        .catch((e) => {});
    },
    getFl_two() {
      flcdApi
        .getAllFl({ type: "2" })
        .then((res) => {
          this.cdList = res.data.data;
        })
        .catch((e) => {});
    },
    getFl_third() {
      flcdApi
        .getAllFl({ type: "3" })
        .then((res) => {
          this.frList = res.data.data;
        })
        .catch((e) => {});
    },
    getFl_four() {
      flcdApi
        .getAllFl({ type: "4" })
        .then((res) => {
          this.qlList = res.data.data;
        })
        .catch((e) => {});
    },
    getFl_five() {
      flcdApi
        .getAllFl({ type: "5" })
        .then((res) => {
          this.zjzsList = res.data.data;
        })
        .catch((e) => {});
    },
  },
};
</script>

<style lang="stylus" scoped>
.c_right {
  width: 860px;
  height: 402px;
  background: #FFFFFF;
  border: 1px solid #D2D2D2;
  margin-right: 34px;
}

.ser {
  margin-left:20px;
  margin-top: 10px;


  span {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    line-height: 30px;
  }

  ul {
    li {
      font-size:14px;
      font-weight: 500;
      color: #999999;
      list-style: none;
    }
  }
}
</style>